package com.zlf.the.visitor.visitor.impl;

import com.zlf.the.visitor.opter.impl.Computer;
import com.zlf.the.visitor.opter.impl.Keyboard;
import com.zlf.the.visitor.opter.impl.Monitor;
import com.zlf.the.visitor.opter.impl.Mouse;
import com.zlf.the.visitor.visitor.ComputerPartVisitor;

public class ComputerPartDisplayVisitor implements ComputerPartVisitor {

		@Override
		public void visit(Computer computer) {
				System.out.println("Displaying Computer.");
		}

		@Override
		public void visit(Mouse mouse) {
				System.out.println("Displaying Mouse.");
		}

		@Override
		public void visit(Keyboard keyboard) {
				System.out.println("Displaying Keyboard.");
		}

		@Override
		public void visit(Monitor monitor) {
				System.out.println("Displaying Monitor.");
		}
}